package com.ktgj.hotel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.hotel.mapper.HotelDifferencesMapper;
import com.ktgj.hotel.domain.HotelDifferences;
import com.ktgj.hotel.service.IHotelDifferencesService;

/**
 * 酒店差异Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-13
 */
@Service
public class HotelDifferencesServiceImpl implements IHotelDifferencesService 
{
    @Autowired
    private HotelDifferencesMapper hotelDifferencesMapper;

    /**
     * 查询酒店差异
     * 
     * @param id 酒店差异ID
     * @return 酒店差异
     */
    @Override
    public HotelDifferences selectHotelDifferencesById(Long id)
    {
        return hotelDifferencesMapper.selectHotelDifferencesById(id);
    }

    /**
     * 查询酒店差异列表
     * 
     * @param hotelDifferences 酒店差异
     * @return 酒店差异
     */
    @Override
    public List<HotelDifferences> selectHotelDifferencesList(HotelDifferences hotelDifferences)
    {
        return hotelDifferencesMapper.selectHotelDifferencesList(hotelDifferences);
    }

    /**
     * 新增酒店差异
     * 
     * @param hotelDifferences 酒店差异
     * @return 结果
     */
    @Override
    public int insertHotelDifferences(HotelDifferences hotelDifferences)
    {
        return hotelDifferencesMapper.insertHotelDifferences(hotelDifferences);
    }

    /**
     * 修改酒店差异
     * 
     * @param hotelDifferences 酒店差异
     * @return 结果
     */
    @Override
    public int updateHotelDifferences(HotelDifferences hotelDifferences)
    {
        return hotelDifferencesMapper.updateHotelDifferences(hotelDifferences);
    }

    /**
     * 批量删除酒店差异
     * 
     * @param ids 需要删除的酒店差异ID
     * @return 结果
     */
    @Override
    public int deleteHotelDifferencesByIds(Long[] ids)
    {
        return hotelDifferencesMapper.deleteHotelDifferencesByIds(ids);
    }

    /**
     * 删除酒店差异信息
     * 
     * @param id 酒店差异ID
     * @return 结果
     */
    @Override
    public int deleteHotelDifferencesById(Long id)
    {
        return hotelDifferencesMapper.deleteHotelDifferencesById(id);
    }
}
